<template>
  <view class="header">
    <view class="title_bg">
      <view class="title">
        <view class="user_head">
          <image src="../../static/defaultHead.jpg" mode="" />
        </view>
        <view class="username">
          <view>欢迎使用永泰数字政务</view>
          <view>{{ username }}</view>
        </view>
      </view></view
    >
  </view>
</template>

<script>
export default {
  props: ["username"],
  data() {
    return {};
  },
  onLoad() {},
  methods: {},
};
</script>

<style lang="scss" scoped>
.header {
  width: 100%;
  .title_bg {
    width: 100%;
    height: 320rpx;
    background-image: url("../../static/image/home/title_bg.png");
    background-size: 100% 100%;
  }
  .title {
    width: 100%;
    height: 200rpx;
    padding: 0 20rpx;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    .user_head {
      width: 90rpx;
      height: 90rpx;
      background-color: rgba(99, 159, 255, 1);
      border-radius: 50%;
      display: flex;
      flex-flow: row nowrap;
      justify-content: center;
      align-items: center;

      image {
        width: 80rpx;
        height: 80rpx;
        border-radius: 50%;
      }
    }
    .username {
      margin-left: 20rpx;
      view:nth-child(1) {
        font-size: 36rpx;
        font-family: PingFang SC;
        font-weight: bold;
        color: #ffffff;
      }
      view:nth-child(2) {
        font-size: 28rpx;
        font-family: PingFang SC;
        font-weight: 400;
        color: #ffffff;
      }
    }
  }
}
</style>
